//商品销售统计模块API
import axios from '../axios'

//统计执行
export const execute = (data) => {
  return axios({
    url: '/revenue/execute',
    method: 'post',
    data: data
  })
};

//从SKU维度查营收
export const goodsFindPage = (data) => {
  return axios({
    url: '/revenue/goods/findPage',
    method: 'post',
    data: data
  })
};

//从SKU维度导出营收数据
export const goodsRevenueExport = (data) => {
  return axios({
    url: '/revenue/goods/export',
    responseType: 'arraybuffer',
    method: 'post',
    data: data
  })
};

//从店铺维度查营收
export const shopFindPage = (data) => {
  return axios({
    url: '/revenue/shop/findPage',
    method: 'post',
    data: data
  })
};

//从公司维度查营收
export const companyFindPage = (data) => {
  return axios({
    url: '/revenue/company/findPage',
    method: 'post',
    data: data
  })
};


